home *** CD-ROM | disk | FTP | other *** search
/ The Complete Utilities To…ka 501 Killer Utilities! / 501 Killer Utilities! (Macworld July 1995).cdr / Programming / OutOfPhase1.1 Source / OutOfPhase Folder / FilterFirstOrderLowpass.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-02  |  900 b   |  34 lines  |  [TEXT/KAHL]

  1. /* FilterFirstOrderLowpass.h */
  2.  
  3. #ifndef Included_FilterFirstOrderLowpass_h
  4. #define Included_FilterFirstOrderLowpass_h
  5.  
  6. /* FilterFirstOrderLowpass module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Memory */
  12. /* FloatingPoint */
  13.  
  14. struct FirstOrderLowpassRec;
  15. typedef struct FirstOrderLowpassRec FirstOrderLowpassRec;
  16.  
  17. /* flush free list */
  18. void                                            FlushCachedFirstOrderLowpassStuff(void);
  19.  
  20. /* create a new filter record */
  21. FirstOrderLowpassRec*            NewFirstOrderLowpass(void);
  22.  
  23. /* dispose filter record */
  24. void                                            DisposeFirstOrderLowpass(FirstOrderLowpassRec* Filter);
  25.  
  26. /* adjust filter coefficients */
  27. void                                            SetFirstOrderLowpassCoefficients(FirstOrderLowpassRec* Filter,
  28.                                                         float Cutoff, long SamplingRate);
  29.  
  30. /* apply filter to a sample value */
  31. float                                            ApplyFirstOrderLowpass(FirstOrderLowpassRec* Filter, float Xin);
  32.  
  33. #endif
  34.